import request from '@/utils/request'

// 直播列表
export function getLiveBroadcastsList(params) {
  return request({
    url: '/liveBroadcast/findList',
    method: 'post',
    params
  })
}

// 添加直播
export function addLiveBroadcast(params) {
  return request({
    url: '/liveBroadcast/add',
    method: 'post',
    params
  })
}

// 编辑直播
export function editLiveBroadcast(params) {
  return request({
    url: '/liveBroadcast/updateLive',
    method: 'post',
    params
  })
}

// 删除直播
export function removeLiveBroadcast(params) {
  return request({
    url: '/liveBroadcast/deleteLive',
    method: 'get',
    params
  })
}

// 直播详情
export function liveBroadcastShow(params) {
  return request({
    url: '/liveBroadcast/findById',
    method: 'get',
    params
  })
}

// 直播平台
export function getPlatformList(params) {
  return request({
    url: '/liveBroadcast/findPlatformList',
    method: 'post',
    params
  })
}

// 预约直播记录
export function getReservationList(params) {
  return request({
    url: '/liveBroadcast/getReservationList',
    method: 'post',
    params
  })
}

// 获取直播记录
export function getLiveBroadcastsRecords(params) {
  return request({
    url: '/csvService/findList',
    method: 'get',
    params
  })
}
